package com.hong.controller.v5;

import com.hong.service.WebSocketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Controller;

/**
 * @Author csh
 * @Description:股票推送controller
 * @Date 2018/9/15 15:16
 */
@Controller
public class V5StockInfoController {

    @Autowired
    private WebSocketService ws;

    @Scheduled(fixedRate=1000)
    public void stockInfo(){
        ws.sendStockInfo();
    }
}
